<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/toadd}">添加</a>
    <table>
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>性别</td>
            <td>密码</td>
            <td>年龄</td>
            <td>数字</td>
            <td>操作</td>
        </tr>
        <tr th:each="user:${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.gender}"></td>
            <td th:text="${user.password}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.tel}"></td>
            <td>
                <a th:href="@{/del(uid=${user.id})}">删除</a>
                <a th:href="@{/findById(uid=${user.id})}">修改</a>
            </td>
        </tr>
    </table>
</body>
</html>